package com.yunzheng.studyLeaveSystem.modules.user.leaveFunction.leave.service;

import com.yunzheng.studyLeaveSystem.modules.user.leaveFunction.leave.dao.LeaveDao;
import com.yunzheng.studyLeaveSystem.modules.user.leaveFunction.leave.entity.Leave;

public class LeaveService {
    LeaveDao leaveDao = new LeaveDao();

    /**
     * 实际掉用了dao层的方法
     * @param leave 参数为请假实体
     */
    public void leave(Leave leave,int id){
        leaveDao.add(leave,id);
    }
}